#!/bin/bash


echo "Set teacher name"
name="test_nom_"`date "+%H:%M:%S"`
curl --data "$name" "http://localhost:8080/EnseirbWebXMLWebapp/about/teacher/post"
echo ""

sleep 0.9

echo "Get teacher name"
curl "http://localhost:8080/EnseirbWebXMLWebapp/about?action=teacher"
echo ""

sleep 0.9

echo "Classe"
curl http://localhost:8080/EnseirbWebXMLWebapp/about?action=classe
echo ""

sleep 0.9

echo "Groupe"
curl http://localhost:8080/EnseirbWebXMLWebapp/about?action=groupe
echo ""

sleep 0.9

echo "studentsNumber"
curl http://localhost:8080/EnseirbWebXMLWebapp/about?action=studentsNumber
echo ""

sleep 0.9

echo "Full"
curl http://localhost:8080/EnseirbWebXMLWebapp/about?action=full
echo ""

sleep 0.9

echo "Lastname student 1"
curl "http://localhost:8080/EnseirbWebXMLWebapp/about?action=lastName&studentId=1"
echo ""

sleep 0.9

echo "Firstname student 1"
curl "http://localhost:8080/EnseirbWebXMLWebapp/about?action=firstName&studentId=1"
echo ""
